<template>
  <div class="headerWrapper">
    <header class="header" ref="header">
      <div class="container">
        <h1>
          <router-link :to="'/'">
          <!-- logo -->
          <slot>
            <img src="../assets/images/shougangLogo.png"
              alt="logo"
              class="nav-logo" style="width:200px;">
          </slot>

        </router-link></h1>
        <!--//FIXME 顶部菜单 -->
      <ul class="nav">
          <li class="nav-item">
              <router-link
                active-class="active"
                :to="`/`">{{ "指南" }}
              </router-link>
            </li>
            <li class="nav-item">
              <router-link
                active-class="active"
                :to="`/center`">{{ "组件" }}
              </router-link>
            </li>
            <li class="nav-item">
              <router-link
                active-class="active"
                :to="`/`"
                exact>{{ "资源" }}
              </router-link>
            </li>
            <!-- <li class="nav-item">
              <router-link
                active-class="active"
                :to="`/jtdemo`"
                exact>{{ "京唐" }}
              </router-link>
            </li> -->
      </ul>
      </div>
      
    </header>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        active: '',
      };
    },
    components: {
    },
  };
</script>
<style scoped>
.headerWrapper{
  height: 80px;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1500;
}
.headerWrapper .header{
  height: 80px;
  background-color: #fff;
  color: #fff;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 80px;
  z-index: 100;
  position: relative;
}
.headerWrapper .header .container{
  height: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #dcdfe6;
  width: 1140px;
  padding: 0;
  margin: 0 auto;
}
.headerWrapper .header h1{
  margin: 0;
  float: left;
  font-size: 32px;
  font-weight: 400;
}
.headerWrapper .header h1 a{
  color: #333;
  text-decoration: none;
  display: block;
}
.headerWrapper .header .nav{
    float: right;
    height: 100%;
    line-height: 80px;
    background: transparent;
    padding: 0;
    margin: 0;
}
.headerWrapper .header .nav-item{
    margin: 0;
    float: left;
    list-style: none;
    position: relative;
    cursor: pointer;
    line-height: 80px;
    width: 76px;
}
.headerWrapper .header .nav-item a{
  text-decoration: none;
  color: #1989fa;
  opacity: .5;
  display: block;
  padding: 0 22px;
}
.headerWrapper .header .nav-item a:hover{
  opacity: 1;
}
</style>